<h1><?php echo $this->title;?></h1>
<!--  start product-table ..................................................................................... -->
				<form id="mainform" action="" method="post">
				<label>Nhập mã thẻ vào :</label>
				<?php echo $this->formText('mathechinh',null,null);?>
				<div><?php echo $this->formSubmit('submit','Xem thông tin khách hàng');?></div>
				<table border="0" width="100%" cellpadding="0" cellspacing="0" id="product-table">
				<tr>
					<th class="table-header-repeat line-left"><a href="">ID</a></th>
					<th class="table-header-repeat line-left"><a href="">Họ tên khách hàng</a></th>
					<th class="table-header-repeat line-left"><a href="">Tên chi nhánh</a></th>
					<th class="table-header-repeat line-left"><a href="">Hạn sử dụng</a></th>
					<th class="table-header-options line-left"><a href="">Tùy chọn</a></th>
				</tr>
<?php
	if(count($this->ttkh) != 0)
	{
		foreach($this->ttkh as $ttkh)
		{
		$khachhangs = $ttkh->getKhachhang();
		foreach($khachhangs as $khachhang)
		{	
			$hovaten = $khachhang->getHovaten();
		}
		$thechinh = $ttkh->getThechinh();
		
		$id = $thechinh->getId();
		
		$chinhanh = $thechinh->getChinhanh();
		$tenchinhanh = $chinhanh->getTenchinhanh();
		
		$hansudung = $thechinh->getNamsinh();		
		$linkEdit = $this->baseUrl('/admin/thechinh/capnhat/id/'. $id);
		$linkDelete = $this->baseUrl('/admin/thechinh/xoa/id/'. $id);
?>
				<tr>
					<td><?php echo $id?></td>
					<td><?php echo $hovaten?></td>
					<td><?php echo $tenchinhanh?></td>
					<td><?php echo $hansudung?></td>
					<td class="options-width">
					<a href="<?php echo $linkEdit?>" title="Edit" class="icon-1 info-tooltip"></a>
					<a href="<?php echo $linkDelete?>" title="Edit" class="icon-2 info-tooltip"></a>
					</td>
				</tr>
		<?php 
		}
		}?>			
			</table>
		
				<!--  end product-table................................... -->
				</form>